package com.recycler.coverflow.wcdb;

import android.content.Context;
import android.content.ContextWrapper;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;

import java.io.File;

public class DbContext extends ContextWrapper {
    public DbContext(Context base) {
        super(base);
    }

    private static final String TAG = "zyj_db";

    private final String PATH = "/sdcard/1.db";

    @Override
    public File getDatabasePath(String name) {

        File file = new File(PATH);
        if(!file.exists()){
            Log.d(TAG, " cant find DB File >>> "+PATH);
            return null;
        }

        Log.d(TAG, "find DB File");

        return file;
    }

}
